package main

import (
	"spider/crawler/engine"
	"spider/crawler/scheduler"
	"spider/crawler/zhanai/parser"
)

func main() {

	// engine.Simple{}.Run(engine.Request{
	// 	Url:        "http://www.zhenai.com/zhenghun",
	// 	ParserFunc: parser.ParseCityList,
	// })

	e := engine.ConcurrentEngine{
		// Scheduler:   &scheduler.Simplescheduler{},
		Scheduler:   &scheduler.QueuedScheduler{},
		WorkerCount: 10,
	}

	e.Run(engine.Request{
		Url:        "http://www.zhenai.com/zhenghun",
		ParserFunc: parser.ParseCityList,
	})

}
